package com.poetry.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@TableName("search")
@AllArgsConstructor
@NoArgsConstructor
public class Search {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private String content;

    /**
     * 搜索词最近搜索时间
     */
    private LocalDateTime viewedAt;

    private LocalDateTime createTime;
}
